Fk:loadTranslationTable{
  ["boliujiang"] = "六将",
  [":boliujiang"] = "当你使用的【杀】被抵消后，你本回合下次【杀】造成的伤害+1。",

  ["@zhan-turn"] = "斩",

  ["$boliujiang1"] = "天下碌碌之辈，安敢小觑关某！",
  ["$boliujiang2"] = "触关某逆鳞者，杀无赦！",
}

local zhan = fk.CreateSkill{
  name = "boliujiang",
  tags = { Skill.Compulsory },
}

-- 移除杀次数限制的效果（注释或删除targetmod相关代码）
-- zhan:addEffect("targetmod", {
--   bypass_times = function(self, player, skill, scope, card)
--     return player:hasSkill(zhan.name) and card and skill.trueName == "slash_skill" and scope == Player.HistoryPhase
--   end,
-- })

-- 移除杀使用次数刷新效果（可选，根据实际需求决定是否保留）
zhan:addEffect(fk.CardUsing, {
  can_refresh = function(self, event, target, player, data)
    return target == player and player:hasSkill(zhan.name) and
      data.card.trueName == "slash" and player:usedCardTimes("slash") > 1
  end,
  on_refresh = function(self, event, target, player, data)
    player:broadcastSkillInvoke(zhan.name)
    player.room:notifySkillInvoked(player, zhan.name, "offensive")
  end,
})

-- 杀被抵消后增加伤害标记
zhan:addEffect(fk.CardEffectCancelledOut, {
  mute = true,
  can_trigger = function(self, event, target, player, data)
    return player == target and data.card.trueName == "slash" and player:hasSkill(zhan.name)
  end,
  on_use = function(self, event, target, player, data)
    player.room:addPlayerMark(player, "@zhan-turn", 1) -- 增加标记值为1
  end,
})

-- 造成伤害时检查标记并增加伤害
zhan:addEffect(fk.DamageCaused, {
  mute = true,
  is_delay_effect = true,
  can_trigger = function(self, event, target, player, data)
    return player == target and data.card and data.card.trueName == "slash" and 
           player.room.logic:damageByCardEffect() and
           player:getMark("@zhan-turn") > 0 and player:hasSkill(zhan.name)
  end,
  on_use = function(self, event, target, player, data)
    data:changeDamage(data.damage + 1) -- 直接增加1点伤害
    player.room:setPlayerMark(player, "@zhan-turn", 0) -- 消耗标记
  end,
})

return zhan